All Questions
6 questions
1vote
2answers
586views
Reading 12-bit words from 32-bit stream
I have a device (ADC) that stores its samples in a 32-bit buffer and each sample is a 12-bit word : I needed an algorithm to read those samples to a container (say ...
3votes
2answers
2kviews
Parsing a std::string to a dictionary (std::map)
As always - the context ! Preliminaries Recently I needed a way to transport data from one environment to another. Though the proper way (probably) to do this would be to use databases (which I don't ...
4votes
1answer
231views
A mathematical expression parser with custom data structures
I recently wrote a mathematical expression parser in C++. The software can read valid mathematical expressions and evaluate them. An example of an expression the code can parse is ...
8votes
1answer
5kviews
Shunting-yard algorithm for expression parser
After reading about the Shunting-yard algorithm, I decided to try to make a expression parser, before trying to make a actual language parser, using it. The way i translated the algorithm into C++ ...
2votes
2answers
6kviews
HTML parsing algorithm for extracting <a> tags
My intention is to create a complete HTML parser, so far I made a basic algorithm that iterates trough text and extracts everything in an "a" tag. It works on everything I tried, but I want a review ...
7votes
1answer
418views
Assembler listings parser components: Operands parser
I'm building the above mentioned parser. It reads a string of assembler instructions. I want to become a better coder, so I wanted to get a code review to start learning to do things property. As we ...